package org.accp.pojo;

public class Illness {
    private Integer id;
    private String illnessName;
    private String logogram;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getIllnessName() {
        return illnessName;
    }

    public void setIllnessName(String illnessName) {
        this.illnessName = illnessName;
    }

    public String getLogogram() {
        return logogram;
    }

    public void setLogogram(String logogram) {
        this.logogram = logogram;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Illness illness = (Illness) o;

        if (id != illness.id) return false;
        if (illnessName != null ? !illnessName.equals(illness.illnessName) : illness.illnessName != null) return false;
        if (logogram != null ? !logogram.equals(illness.logogram) : illness.logogram != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = id;
        result = 31 * result + (illnessName != null ? illnessName.hashCode() : 0);
        result = 31 * result + (logogram != null ? logogram.hashCode() : 0);
        return result;
    }
}
